package org.offerproject.shortlink.admin.dto.resp;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import org.offerproject.shortlink.admin.common.serialize.PhoneDesensitizationSerializer;

/**
 * Classname: UserRespDto
 * Package: org.offerproject.shortlink.admin.dto.resp
 * Description:
 *
 * @author: 杨晨辉
 * @CreateTime: 2024/9/5 16:23
 * @version: 1.0
 */

/**
 * 用户返回参数响应
 */
@Data
public class UserRespDto {

    /**
     * id
     */
    private Long id;

    /**
     * 用户名
     */
    private String username;


    /**
     * 真实姓名
     */
    private String realName;

    /**
     * 电话
     */
    @JsonSerialize(using = PhoneDesensitizationSerializer.class)
    private String phone;

    /**
     * 邮箱
     */
    private String mail;


}
